package com.mes.workhour.domain;

import java.util.Date;

import com.mes.basicdata.domain.Dept;
import com.mes.basicdata.domain.Employee;
import com.mes.common.domain.BasicModel;
/*
import com.mes.basicdata.persistence.domain.Dept;
import com.mes.basicdata.persistence.domain.Employee;
import com.mes.common.model.BasicModel;*/

public class WorkHourHeader extends BasicModel
{
	
	public static final int ACCOUNTSTATE_DRAFT=0;//�ݸ�״̬
	public static final int ACCOUNTSTATE_OPENED=1;//����״̬	
	public static final int ACCOUNTSTATE_CLOSED=2;//�ر�״̬,������������Զ���������		
	public static final int ACCOUNTSTATE_ARCHIEVED=3;//�鵵״̬��������ʷ���������κ��޸�
	public static final int ACCOUNTSTATE_CANCELED=4;//ȡ��״̬������
	
	
	private String accountUid;
	private String accountId;
	private String accountName;
	private Integer accountState;
	private String accountType;
	
	private Dept dept;
	private String deptUid;
	private String deptName;

	private String notes;
	private Date lastUpdate;

	

	private Employee creator;
	private String creatorUid;
	private Date createTime;
	
	//���׹ر���
	private Date closeTime;
	private String closerUid;
	private Employee closer;
	
	//���״���
	private Date openTime;
	private String openerUid;
	private Employee opener;
	
	//���׹鵵��
	private Date archieveTime;
	private String archieverUid;
	private Employee archiever;
	
	@Override
	public String getUuid() {
		return this.getAccountUid();
	}
	@Override
	public void setUuid(String uuid) {
		this.setAccountUid(uuid);
	}



	public Date getCloseTime() {
		return closeTime;
	}
	public void setCloseTime(Date closeTime) {
		this.closeTime = closeTime;
	}
	public String getAccountUid() {
		return accountUid;
	}
	public void setAccountUid(String accountUid) {
		this.accountUid = accountUid;
	}
	public String getAccountId() {
		return accountId;
	}
	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}
	public String getAccountName() {
		return accountName;
	}
	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}

	public String getAccountType() {
		return accountType;
	}
	public void setAccountType(String accountType) {
		this.accountType = accountType;
	}

	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getNotes() {
		return notes;
	}
	public void setNotes(String notes) {
		this.notes = notes;
	}
	public String getCreatorUid() {
		return creatorUid;
	}
	public void setCreatorUid(String creatorUid) {
		this.creatorUid = creatorUid;
	}
	public Employee getCreator() {
		return creator;
	}
	public void setCreator(Employee creator) {
		this.creator = creator;
	}

	public String getDeptUid() {
		return deptUid;
	}
	public void setDeptUid(String deptUid) {
		this.deptUid = deptUid;
	}
	public String getDeptName() {
		return deptName;
	}
	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}
	public Date getLastUpdate() {
		return lastUpdate;
	}
	public void setLastUpdate(Date lastUpdate) {
		this.lastUpdate = lastUpdate;
	}


	public String getCloserUid() {
		return closerUid;
	}
	public void setCloserUid(String closerUid) {
		this.closerUid = closerUid;
	}
	public Employee getCloser() {
		return closer;
	}
	public Date getOpenTime() {
		return openTime;
	}
	public String getOpenerUid() {
		return openerUid;
	}
	public Employee getOpener() {
		return opener;
	}
	public Date getArchieveTime() {
		return archieveTime;
	}
	public String getArchieverUid() {
		return archieverUid;
	}
	public Employee getArchiever() {
		return archiever;
	}
	public void setCloser(Employee closer) {
		this.closer = closer;
	}
	public void setOpenTime(Date openTime) {
		this.openTime = openTime;
	}
	public void setOpenerUid(String openerUid) {
		this.openerUid = openerUid;
	}
	public void setOpener(Employee opener) {
		this.opener = opener;
	}
	public void setArchieveTime(Date archieveTime) {
		this.archieveTime = archieveTime;
	}
	public void setArchieverUid(String archieverUid) {
		this.archieverUid = archieverUid;
	}
	public void setArchiever(Employee archiever) {
		this.archiever = archiever;
	}
	public Dept getDept() {
		return dept;
	}
	public void setDept(Dept dept) {
		this.dept = dept;
	}
	public Integer getAccountState() {
		return accountState;
	}
	public void setAccountState(Integer accountState) {
		this.accountState = accountState;
	}
	public static int getACCOUNTSTATE_DRAFT() {
		return ACCOUNTSTATE_DRAFT;
	}



	
	

}
